<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./WEB-INF/templates/noBarTemplate.xhtml">
    
    <ui:define name="content">
        <p:panel styleClass="marginTop20 noBorder noPadding">
            <h:outputText rendered="#{jobOffer.allOk}" value="#{messages.SearchIntestCreated}"></h:outputText>
            <h:outputText rendered="#{jobOffer.dataNull}" value="#{messages.DataNull}"></h:outputText>
            <h:outputText rendered="#{jobOffer.existCandidateSearchInterest}" value="#{messages.CandidateSearchInterestExist}"></h:outputText>
            <h:outputText rendered="#{!jobOffer.candidateValidInSearch}" value="#{messages.CandidateNotValidInSearch}"></h:outputText>
        </p:panel>
        <p:panel styleClass="noMargin noBorder noPadding">
            <p:commandButton styleClass="languageBackgroundButton marginBotton20 marginTop20" value="#{messages.Continue}" process="@parent" action="/index.xhtml?faces-redirect=true"  /> 
        </p:panel>
        <p:panel styleClass="noBorder noMargin noPadding">
            <p:panel header="#{jobOffer.search.description}" styleClass="noPaddingTitle marginTop20" >
                <h:graphicImage value="/companyFiles/#{jobOffer.search.company.idCompany.toString()}/images/#{jobOffer.search.company.logo}" styleClass="marginTop20 imagenLogoOferta" style="max-width: 150px;max-height: 125px" rendered="#{jobOffer.search.company.logo!=null}" ></h:graphicImage>
                <p:panelGrid  columnClasses="columminwidth170" columns="2" >
                    <h:outputText value="#{messages.AvailableJobs}" rendered="#{jobOffer.search.availableJobs!=null}" ></h:outputText>
                    <h:outputText value="#{jobOffer.search.availableJobs}" rendered="#{jobOffer.search.availableJobs!=null}" ></h:outputText>
                    <h:outputText value="#{messages.OfferCountry}" rendered="#{jobOffer.search.offerCountry!=null}" ></h:outputText>
                    <h:outputText value="#{countryBundle[jobOffer.search.offerCountry.idCountry.toString()]}" rendered="#{jobOffer.search.offerCountry!=null}" ></h:outputText>
                    <h:outputText value="#{messages.OfferProvince}" rendered="#{jobOffer.search.offerProvince!=null}" ></h:outputText>
                    <h:outputText value="#{jobOffer.search.offerProvince.description}" rendered="#{jobOffer.search.offerProvince!=null}" ></h:outputText>
                    <h:outputText value="#{messages.Sector}" rendered="#{!jobOffer.allSectorOfSelectedSearch.isEmpty()}" ></h:outputText>
                    <p:dataList styleClass="listGridInline" varStatus="professionalIteration" var="sector" value="#{jobOffer.allSectorOfSelectedSearch}" rendered="#{!jobOffer.allSectorOfSelectedSearch.isEmpty()}"> 
                        <h:outputText value="#{sectorBundle[sector]}"></h:outputText>
                        <h:outputText rendered="#{!professionalIteration.last}" value=", " ></h:outputText>
                    </p:dataList>
                    <h:outputText value="#{messages.Description}" rendered="#{jobOffer.search.comment!=null}"></h:outputText>
                    <h:outputText value="#{jobOffer.search.comment}" rendered="#{jobOffer.search.comment!=null}"> </h:outputText>
                </p:panelGrid>
            </p:panel> 
        </p:panel >
        <p:panel styleClass="marginTop20 noBorder noPadding" rendered="#{jobOffer.search!=null}">
            <p:commandButton styleClass="interestBackgroundButton" value="#{messages.Continue}" process="@parent" action="/index.xhtml?faces-redirect=true" /> 
        </p:panel>
    </ui:define>

</ui:composition>
</html>